<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>跳转中..</title>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
<%
	String u = request.getParameter("u");
	u = u!=null ? (java.net.URLDecoder.decode(u, "UTF-8")) : "http://www.google.com";
%>
<span id="s" style="color:red;"></span> 秒后跳转到：<br/><br/>
<a href="<%=u%>"><%=u%></a><br/><br/>
[请自备翻墙工具]

<script type="text/javascript">
var u='<%=u%>';
var a=5;
var s=document.getElementById('s');
var _itv;

var b=function(){
	if(a==0){
		window.clearInterval(_itv);
		window.location.href=u;
	}else{
		s.innerHTML=a;
		a--;
	}
	
};

b();
_itv=window.setInterval(b,1000);

</script>
</body>
</html>